package tolgahan.albayrak.as3.reflection
{
	import flash.utils.getDefinitionByName;

	public class TypedMemberInfo extends MemberInfo
	{
		protected var _type:Type;
		public function TypedMemberInfo(xml:XML, baseType:Type, memberIndex:uint)
		{
			super(xml, baseType, memberIndex);
			var t:String = xml.@type[0];
			if(t == "*")
				t = "Object";
			_type = Type.GetType(getDefinitionByName(t) as Class);
		}
		public function get type():Type
		{
			return _type;
		}		
	}
}